package cn.getech.data.metadata.service;

import cn.getech.data.intelligence.common.utils.PageUtils;
import cn.getech.data.metadata.entity.meta.CollectionTask;
import cn.getech.data.metadata.entity.meta.CollectionTaskLog;
import cn.getech.data.metadata.model.excel.CollectionTableFieldExcel;
import cn.getech.data.metadata.model.req.meta.CollectionTaskListReq;
import cn.getech.data.metadata.model.res.CollectionTaskDetail;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface CollectionTaskService extends IService<CollectionTask>{

    PageUtils selectListPage(CollectionTaskListReq req);

    CollectionTaskDetail getDetailById(Long id);

    void deleteByIds(List<Long> ids);

    void saveTask(CollectionTask toCollectionTask,List<Long> userGroup);

    JSONObject saveTableField(Long start, Long taskId, List<CollectionTableFieldExcel> list, Boolean check);

    Long insertRunLog(Long start, CollectionTask task, String logContent);

    Long insertRunLog(Long start, CollectionTask task, String logContent, Long userId);

    Long insertRunLog(CollectionTaskLog taskLog, String logContent);

    JSONObject getCheckExcel(Long taskId, List<CollectionTableFieldExcel> list);
}
